package com.hengpeng.itfin.persist;

import java.util.Date;
import java.util.List;

import com.hengpeng.common.persist.NestedSimplyDao;
import com.hengpeng.itfinbase.en.RewardAddRateStatus;
import com.hengpeng.itfinbase.persist.RewardAddRate;

public interface RewardAddRateDao extends NestedSimplyDao<RewardAddRate> {

    /**
     * 根据状态获取加息信息
     * 
     * @param status
     * @param fetchSize
     * @return
     */
    public List<RewardAddRate> findRewardAddRateByStatus(RewardAddRateStatus status, int fetchSize);

    /**
     * 更新状态
     * 
     * @param id
     * @param oldStatus
     * @param newStatus
     * @param updateTime
     * @return
     */
    public int updateStatus(long id, RewardAddRateStatus oldStatus, RewardAddRateStatus newStatus, Date updateTime);

}
